<div class="classCat">
    <div class="container">
        <div class="row">
            <div class="span12">            	
                <ul class="breadcrumb">
                    <li class="previous"><a href="<?php echo SITE_URL; ?>">Home /</a></li>                        
                    <li class="disable"><a href="javascript:void(0);">Class Category</a></li>
                </ul>                    

                <!--Category Listing-->
                <div class="row">
                    <ul class="catList">
                        <?php
                        $count = 1;
                        foreach ($classTypes as $classType) {
                            if ($count == '1') {
                                $type = 'course';
                                $checkedRadio = 'checked="checked"';
                                $messageText = Message::COURSE_CATEGORY_TEXT;
                            }
                            if ($count == '2') {
                                $type = 'workshop';
                                $checkedRadio = 'checked="checked"';
                                $messageText = Message::CLASSES_WORKSHOP_CATEGORY_TEXT;
                            }
                            if ($count == '3') {
                                $type = 'curatedclasses';
                                $checkedRadio = 'checked="checked"';
                                $messageText = Message::CURETED_CATEGORY_TEXT;
                            }
                            ?>
                            <li class="span4">
                                <a href="<?php echo $this->createAbsoluteUrl('classes/classCategory', array('type' => $type)) ?>">
                                    <div class="padding">                                    
                                        <span class="catIcon">
                                            <img src="<?php echo baseUrl() . '../../' . getUploadDir() . 'class-type-images/' . $classType->photo; ?>">
                                            <em class="sprite workshopIco"></em>
                                        </span>
                                        <h4><?php echo $classType->name; ?></h4>
                                        <p><?php echo $messageText; ?></p>
                                    </div>
                                </a>
                            </li>
                            <?php
                            $count++;
                        }
                        ?>
                    </ul>
                </div>
                <!--End Category Listing-->             
            </div>                                      
        </div>
    </div>
</div>
<?php $this->renderPartial('/classes/_classCourseFliterLeft', array('checkedRadio' => $checkedRadio,'activeClass'=>$activeClass,'dataProvider' => $dataProvider)); ?>
<script>
    $(function(){  
        $( ".catList li" ).eq(<?php echo $activeClass[0]; ?>).addClass("active");
    });
</script>